package cn.lokei.gateway.entity;

import java.util.HashSet;
import java.util.Set;

import io.netty.channel.ChannelId;
import lombok.Data;

@Data
public class IotChannel {
  private boolean is_connected;
  private boolean is_registered;
  private String client_id;
  private String username;
  private byte[] password;
  private ChannelId channel_id;

  private Set<String> subTopics;

  public IotChannel() {
    this.subTopics = new HashSet<String>();
  }

  public IotChannel(ChannelId channel_id) {
    this.subTopics = new HashSet<String>();
    this.channel_id = channel_id;
  }
}
